package com._520it.crm.web.controller;

import com._520it.crm.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/changePassword")
public class ChangePasswordController {

    @Autowired
    private IEmployeeService employeeService;

    /*@RequiresPermissions("employee:change2")
    @PermissionName("密码修改界面")*/
    @RequestMapping("")
    public String index(){
        return "changePassword";
    }

   /* @RequiresPermissions("employee:change")
    @PermissionName("修改密码")
    @RequestMapping("/change")
    @ResponseBody
    public AjaxResult change(Long id){
        AjaxResult result = null;
        try {
            employeeService.changePassword(id);
            result = new AjaxResult(true,"修改成功");
        } catch (Exception e) {
            e.printStackTrace();
            result = new AjaxResult("修改失败");
        }
        return result;
    }*/


}
